package com.fhz.fengmvvm.user;

import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;

import com.fhz.fengmvvm.BaseViewModel;

/**
 * 时间:11/8/21
 *
 * @author msfeng
 * 简述: TODO
 */
public class UserCenterViewModel extends BaseViewModel<UserCenterRepository> {

    public MutableLiveData<Food> dataSource=new MutableLiveData<>();

    public UserCenterViewModel(LifecycleOwner owner) {
        super(owner);
        dataSource.setValue(new Food());
    }

    @Override
    protected UserCenterRepository createRepository() {
        return new UserCenterRepository();
    }


    public LiveData<Food> getFood(){
        return mRepository.getFood();
    }


    @Override
    public void initResource() {

    }
}
